package com.example.yang.yixin.Activity;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.example.yang.yixin.R;
import com.example.yang.yixin.Views.AnnularView;

public class CountActivity extends BaseActivity{
AnnularView annularView;
    private Float[] datas = new Float[]{ 100f, 30f, 20f};
    private ImageView mIv_back;
    @SuppressLint("WrongViewCast")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_count);
        annularView=findViewById(R.id.view_count);
        annularView.setDatas(datas,true);
        Viewinit();

    }

    private void Viewinit() {
        initNarvBar(true,"出勤统计",false);
        mIv_back=findViewById(R.id.iv_back);
        mIv_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(CountActivity.this,SignInActivity.class);
                startActivity(intent);
            }
        });
    }
}
